package net.modul.dict.dao;

import java.util.List;
import java.util.Map;

import net.modul.dict.vo.DictSortVo;
import net.modul.dict.vo.DictVo;

/**
 * 数据字典数据访问接口
 * 
 * @author Administrator
 * 
 */
public interface DictDao {

	/**
	 * 保存数据字典
	 * 
	 * @param vo
	 * @throws Exception
	 */
	public Integer insert(DictVo bean) throws Exception;

	/**
	 * 更新数据字典
	 * 
	 * @param vo
	 * @throws Exception
	 */
	public void update(DictVo bean) throws Exception;

	/**
	 * 更新数据字典删除标识位
	 * 
	 * @param vo
	 * @throws Exception
	 */
	public void updateFlag(DictVo bean) throws Exception;

	/**
	 * 字典分类
	 * 
	 * @return
	 * @throws Exception
	 */
	public List<DictSortVo> searchDictSort() throws Exception;

	/**
	 * 按字典分类分组查询数据字典
	 * 
	 * @param vo
	 * @return
	 * @throws Exception
	 */
	public Map<String, Map<String, DictVo>> searchGroup() throws Exception;
}
